package com.kgc.novel.controller;

import com.kgc.novel.common.Res;
import com.kgc.novel.domain.param.BookOrderParam;
import com.kgc.novel.service.order.BookOrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 订单表 前端控制器
 * </p>
 *
 * @author jcq
 * @since 2023-05-17
 */
@Api("小说订单管理")
@RestController
@RequestMapping("/book-order")
public class BookOrderController {
    @Resource
    private BookOrderService bookOrderService;

    @ApiOperation("查询订单信息")
    @GetMapping("/list")
    public Res list(BookOrderParam bookOrderParam) {
        return bookOrderService.list(bookOrderParam);
    }
}
